// 通过vue-router 插件实现模板路由配置
import { createRouter, createWebHashHistory } from "vue-router";
import { constantRoute } from "./routers";

// 创建路由
let router = createRouter({
  history: createWebHashHistory(),
  routes: constantRoute,
  // 滾動行爲
  scrollBehavior() {
    return {
      left: 0,
      top: 0,
    };
  },
});

// 导出路由
export default router;
